const express = require('express');
const router = express.Router();
const login = require('../module/login/login')
const {getAIData} = require("../module/baiduAI");

/* GET users listing. */
router.post('/', async(req, res, next) => {
    const data = await login.checkUser(req.body)
    res.json(data)
});

// 注册
router.post('/register', async (req, res) => {
    console.log('req')
    const data = await login.register()
    console.log('data')
})

module.exports = router;
